package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE depot</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "depot")
@SuppressWarnings("serial")
public class Depot implements Serializable {

	/**
	 * Attribute iddepot.
	 */
	private Integer iddepot;
	
	/**
	 * Attribute deIntitule.
	 */
	private String deIntitule;
	
	/**
	 * Attribute deAdresse.
	 */
	private String deAdresse;
	
	/**
	 * Attribute deCodepostal.
	 */
	private String deCodepostal;
	
	/**
	 * Attribute deVille.
	 */
	private String deVille;
	
	/**
	 * Attribute deContact.
	 */
	private String deContact;
	
	/**
	 * Attribute dePrincipal.
	 */
	private Short dePrincipal;
	
	/**
	 * Attribute dePays.
	 */
	private String dePays;
	
	/**
	 * Attribute deEmail.
	 */
	private String deEmail;
	
	/**
	 * Attribute deTelephone.
	 */
	private String deTelephone;
	
	/**
	 * Attribute deTelecopie.
	 */
	private String deTelecopie;
	
	/**
	 * List of Articlestock
	 */
	private List<Articlestock> articlestocks = null;

	/**
	 * List of Depotcontact
	 */
	private List<Depotcontact> depotcontacts = null;

	/**
	 * List of Docentete
	 */
	private List<Docentete> docentetes = null;

	
	/**
	 * <p> 
	 * </p>
	 * @return iddepot
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "iddepot")
		public Integer getIddepot() {
		return iddepot;
	}

	/**
	 * @param iddepot new value for iddepot 
	 */
	public void setIddepot(Integer iddepot) {
		this.iddepot = iddepot;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deIntitule
	 */
	@Basic
	@Column(name = "DE_Intitule", length = 45)
		public String getDeIntitule() {
		return deIntitule;
	}

	/**
	 * @param deIntitule new value for deIntitule 
	 */
	public void setDeIntitule(String deIntitule) {
		this.deIntitule = deIntitule;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deAdresse
	 */
	@Basic
	@Column(name = "DE_Adresse", length = 45)
		public String getDeAdresse() {
		return deAdresse;
	}

	/**
	 * @param deAdresse new value for deAdresse 
	 */
	public void setDeAdresse(String deAdresse) {
		this.deAdresse = deAdresse;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deCodepostal
	 */
	@Basic
	@Column(name = "DE_CodePostal", length = 9)
		public String getDeCodepostal() {
		return deCodepostal;
	}

	/**
	 * @param deCodepostal new value for deCodepostal 
	 */
	public void setDeCodepostal(String deCodepostal) {
		this.deCodepostal = deCodepostal;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deVille
	 */
	@Basic
	@Column(name = "DE_Ville", length = 45)
		public String getDeVille() {
		return deVille;
	}

	/**
	 * @param deVille new value for deVille 
	 */
	public void setDeVille(String deVille) {
		this.deVille = deVille;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deContact
	 */
	@Basic
	@Column(name = "DE_Contact", length = 45)
		public String getDeContact() {
		return deContact;
	}

	/**
	 * @param deContact new value for deContact 
	 */
	public void setDeContact(String deContact) {
		this.deContact = deContact;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dePrincipal
	 */
	@Basic
	@Column(name = "DE_Principal")
		public Short getDePrincipal() {
		return dePrincipal;
	}

	/**
	 * @param dePrincipal new value for dePrincipal 
	 */
	public void setDePrincipal(Short dePrincipal) {
		this.dePrincipal = dePrincipal;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dePays
	 */
	@Basic
	@Column(name = "DE_Pays", length = 45)
		public String getDePays() {
		return dePays;
	}

	/**
	 * @param dePays new value for dePays 
	 */
	public void setDePays(String dePays) {
		this.dePays = dePays;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deEmail
	 */
	@Basic
	@Column(name = "DE_EMail", length = 70)
		public String getDeEmail() {
		return deEmail;
	}

	/**
	 * @param deEmail new value for deEmail 
	 */
	public void setDeEmail(String deEmail) {
		this.deEmail = deEmail;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deTelephone
	 */
	@Basic
	@Column(name = "DE_Telephone", length = 21)
		public String getDeTelephone() {
		return deTelephone;
	}

	/**
	 * @param deTelephone new value for deTelephone 
	 */
	public void setDeTelephone(String deTelephone) {
		this.deTelephone = deTelephone;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return deTelecopie
	 */
	@Basic
	@Column(name = "DE_Telecopie", length = 21)
		public String getDeTelecopie() {
		return deTelecopie;
	}

	/**
	 * @param deTelecopie new value for deTelecopie 
	 */
	public void setDeTelecopie(String deTelecopie) {
		this.deTelecopie = deTelecopie;
	}
	
	/**
	 * Get the list of Articlestock
	 */
	 @JsonIgnore
	 @OneToMany(mappedBy="depot")
	 public List<Articlestock> getArticlestocks() {
	 	return this.articlestocks;
	 }
	 
	/**
	 * Set the list of Articlestock
	 */
	 public void setArticlestocks(List<Articlestock> articlestocks) {
	 	this.articlestocks = articlestocks;
	 }
	/**
	 * Get the list of Depotcontact
	 */
	 @JsonIgnore
	 @OneToMany(mappedBy="depot")
	 public List<Depotcontact> getDepotcontacts() {
	 	return this.depotcontacts;
	 }
	 
	/**
	 * Set the list of Depotcontact
	 */
	 public void setDepotcontacts(List<Depotcontact> depotcontacts) {
	 	this.depotcontacts = depotcontacts;
	 }
	/**
	 * Get the list of Docentete
	 */
	 @JsonIgnore
	 @OneToMany(mappedBy="depot")
	 public List<Docentete> getDocentetes() {
	 	return this.docentetes;
	 }
	 
	/**
	 * Set the list of Docentete
	 */
	 public void setDocentetes(List<Docentete> docentetes) {
	 	this.docentetes = docentetes;
	 }


}